<?php
namespace app\appletsapi\controller;

use app\common\model\GrowthLog;
use app\common\model\User;
use app\common\service\Wechat;
use think\facade\Config;
use Upload;
use plug\SUtil;

class My extends Base
{
	/**
	 * @route('applets/GetUserAllInfo','get')
	 * 获取用户信息
	 */
	public function GetUserAllInfo()
	{
	    $userinfo = $this->GetUserInfo();
		$this->result(['data'=>$userinfo],1,'操作成功');
	}

    /**
     * @route('applets/GetUserGrowthLog','get')
     * 获取用户积分列表
     */
    public function GetUserGrowthLog()
    {
        $GrowthLogModel = new GrowthLog();
        $list = $GrowthLogModel->get_growth_record(['user_id'=>$this->_userid],'value_show,note,add_time','add_time DESC',$this->limit);

        $this->result($list,1,'操作成功');
    }

}
